#ifndef __VIDEO_ENCODER_H__
#define __VIDEO_ENCODER_H__

// AVI recording resolution: 640x480, 720x480, 1280x720
#define AVI_WIDTH_1080FHD		1920
#define AVI_HEIGHT_1080FHD		1080

#define AVI_WIDTH_1080P			1440
#define AVI_HEIGHT_1080P		1080

#define AVI_WIDTH_720P			1280
#define AVI_HEIGHT_720P			720

#define AVI_WIDTH_WVGA			800
#define AVI_HEIGHT_WVGA			480

#define AVI_WIDTH_D1			720
#define AVI_HEIGHT_D1			480

#define AVI_WIDTH_VGA			640
#define AVI_HEIGHT_VGA			480

#define AVI_WIDTH_QVGA			320
#define AVI_HEIGHT_QVGA			240

extern void video_encode_entrance(void);

extern CODEC_START_STATUS video_encode_sensor_on(INT16U APMode);
extern CODEC_START_STATUS video_encode_sensor_off(void);
extern CODEC_START_STATUS video_encode_preview_on(INT32U mode);
extern CODEC_START_STATUS video_encode_preview_off(void);
extern CODEC_START_STATUS video_encode_record_start(MEDIA_SOURCE src, INT16S txt_handle);
extern CODEC_START_STATUS video_encode_record_stop(void);
extern CODEC_START_STATUS video_encode_record_restart(MEDIA_SOURCE src, INT16S next_txt_handle);
extern CODEC_START_STATUS video_encode_capture_picture(MEDIA_SOURCE src);
extern void video_encode_capture_raw_data(void);

#endif // __VIDEO_ENCODER_H__
